<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        function Person(name) {
            this.name = name || '父亲' // 实例基本属性（该属性，强调私有，不共享）
            this.arr = [1] // 
        }
        Parent.prototype.say = function() { // 将需要复用、共享的方法写在弗父类原型上
            console.log('hello');
        }

        function Child(like) {
            this.like = like
        }
        Child.prototype = new Parent() // 核心，但此时，Child.prototype.constructor == Parent
    </script>
</body>

</html>